{extend name="pc/admin/layout"/}
{block name="main"}
   <div class="g-1400 g-container" id="pjax-container">
        
<div class="bg-bai b rx3" id="vue-page">
    <div class="t-v t-t">
        <div class="c-sidebar c-sidebar-h pb5 br">
            <div class="c-sidebar-title t-v hui bb">网站基础设置</div>
            <ul class="c-nav click-nav">
                <li class="active"><a href="{:url('pc/admin')}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>网站信息</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'set','s'=>'reg'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>注册奖励</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'set','s'=>'mail'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>邮箱提醒</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'set','s'=>'chat'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>聊天发言</div>
                </a></li>
				{if condition="config('web_web_id') eq 1"}
				<li><a href="{:url('pc/admin',['act'=>'set','s'=>'task'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>任务运行</div>
                </a></li>
				<li><a href="{:url('pc/admin',['act'=>'set','s'=>'cron'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>任务监控</div>
                </a></li>
				{/if}
				<li><a href="{:url('pc/admin',['act'=>'set','s'=>'plugins'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>网站插件</div>
                </a></li>
				{if condition="config('web_web_id') eq 1"}
				<li><a href="{:url('pc/admin',['act'=>'set','s'=>'server'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-form"></i></div>
                    <div>服务器设置</div>
                </a></li>
				{/if}
            </ul>
        </div>
<div class="c-content bl">
    <div class="g-title t-v pl4 bb">
        <div class="col-8 h t-v bold">网站信息</div>
        <div class="col-4 t-v t-r"></div>
    </div>
    <div class="g-content p5">
				<form id="form-web" style="padding-left: 25px;padding-right: 25px;">
                <div class="in-text">
                    <dt class="bold pr4">网站名称：</dt>
                    <dd><input type="text" class="form p0 h11 bb bb-hui" name="webname" placeholder="输入站点名称" value="{$webdata.webname}"></dd>
                </div>
				<div class="in-text">
                    <dt class="bold pr4">首页标题：</dt>
                    <dd><input type="text" class="form p0 h11 bb bb-hui" name="title" value="{$webdata.title}"></dd>
                </div>
				<div class="in-text">
                    <dt class="bold pr4">SEO描述：</dt>
                    <dd><input type="text" class="form p0 h11 bb bb-hui" name="description" value="{$webdata.description}"></dd>
                </div>
				<div class="in-text">
                    <dt class="bold pr4">关 键 词 ：</dt>
                    <dd><input type="text" class="form p0 h11 bb bb-hui" name="keywords" value="{$webdata.keywords}"></dd>
                </div>
				<div class="in-text">
                    <dt class="bold pr4">网站域名：</dt>
                    <dd><input type="text" class="form p0 h11 bb bb-hui" name="domain" placeholder="输入网站绑定的域名" value="{$webdata.domain}"></dd>
                </div>
				<div class="in-text">
                    <dt class="bold pr4">备用域名：</dt>
                    <dd><input type="text" class="form p0 h11 bb bb-hui" name="domain2" placeholder="输入网站绑定的备用域名" value="{$webdata.domain2}"></dd>
                </div>
				<div class="in-text">
                    <dt class="bold pr4">站长QQ：</dt>
                    <dd><input type="number" class="form p0 h11 bb bb-hui" name="user_qq" placeholder="输入站长联系QQ" value="{$webdata.user_qq}"></dd>
                </div>
				<div class="in-text">
                    <dt class="bold pr4">站长邮箱：</dt>
                    <dd><input type="email" class="form p0 h11 bb bb-hui" name="mail" placeholder="输入站长联系邮箱" value="{$webdata.mail}"></dd>
                </div>
				</form>
            </div>
</div>
</div>
<div class="c-pagination o-h t-v">
        <div class="c-sidebar"></div>
        <div class="c-content h11 o-h g-btn t-v bt bl">
            <div class="col-12 h t-v f3 hui pl5 pr5 t-c">
			<button class="btn btn-qing btn-md w22 rx1" @click="saveConfig()">保 存 设 置</button></div>
        </div>
    </div>
</div>

    </div>
   {/block}
   {block name='foot'}
		<script>
        new Vue({
            el: '#vue-page',
            methods: {
                saveConfig: function () {
                    app.ajax("{:url('admin_ajax/saveWebSet')}", $("#form-web").serialize(), function (data) {
                        if (data.code === 0) {
                            x.msg(data.message)
                        } else {
                            x.msg(data.message)
                        }
                    })
                }
            }
        });
    </script>
    {/block}